import { instance, request } from "./request";

//获取店铺列表
export const orderList = (data) => {
  return instance({
    url: "/Coupang.Order/orderList",
    method: "post",
    data,
  });
};

//运输类型
export const getTranSport = () => {
  return request({
    url: "/index/transport",
    method: "get",
  });
};
//业务类型
export const getBusiness = () => {
  return request({
    url: "/index/business",
    method: "get",
  });
};

//渠道列表
export const getChannelReceipt = (data) => {
  return instance({
    url: "/Order/channelReceipt",
    method: "post",
    data,
  });
};

//验证excel
export const handleExcel_list = (data) => {
  return instance({
    url: "/Order/handleExcel",
    method: "post",
    data,
  });
};
//刷新列表
export const refreshSku = (data) => {
  return instance({
    url: "/Coupang.Order/refresh",
    method: "post",
    data,
  });
};

//审核订单

export const processOrder = (data) => {
  return instance({
    url: "/Coupang.Order/process",
    method: "post",
    data,
  });
};

//下载模板
export const dowloadMode = () => {
  return instance({
    url: "/Order/dowloadMode",
    method: "get",
  });
};

//下载模板
export const dowloadMembeMode = (data) => {
  return instance({
    url: "/order/dowloadMode",
    method: "post",
    data,
  });
};
